#ifndef __TEXTURE_HPP__
#define __TEXTURE_HPP__

#include <string>
#include "GL/glew.h"

class Texture
{
    unsigned int _rendererID;
    unsigned int _solt;
    std::string _filePath;
    GLubyte* _localBuffer;
    
    int _width, _height, _BPP;//bit per pixel
public:
    Texture( std::string const& filePath );
    ~Texture();

    void bind( unsigned int solt = 0 );
    void unbind();

    inline int width() {
        return _width;
    }
    inline int height() {
        return _width;
    }

    inline unsigned int getID() const {
        return _rendererID;
    }

    inline unsigned int getSolt() const {
        return _solt;
    }
};

#endif // !__TEXTURE_HPP__

